package com.mrd.modules.system.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mrd.modules.system.dao.SysAttachmentDao;
import com.mrd.modules.system.entity.SysAttachmentEntity;
import com.mrd.modules.system.service.SysAttachmentService;



@Service("sysAttachmentService")
public class SysAttachmentServiceImpl implements SysAttachmentService {
  @Autowired
  private SysAttachmentDao sysAttachmentDao;

  @Override
  public SysAttachmentEntity queryObject(Integer id) {
    return sysAttachmentDao.queryObject(id);
  }

  @Override
  public List<SysAttachmentEntity> queryList(Map<String, Object> map) {
    return sysAttachmentDao.queryList(map);
  }

  @Override
  public int queryTotal(Map<String, Object> map) {
    return sysAttachmentDao.queryTotal(map);
  }

  @Override
  public void save(SysAttachmentEntity sysAttachment) {
    sysAttachmentDao.save(sysAttachment);
  }

  @Override
  public void update(SysAttachmentEntity sysAttachment) {
    sysAttachmentDao.update(sysAttachment);
  }

  @Override
  public void delete(Integer id) {
    sysAttachmentDao.delete(id);
  }

  @Override
  public void deleteBatch(Integer[] ids) {
    sysAttachmentDao.deleteBatch(ids);
  }

  @Override
  public List<SysAttachmentEntity> queryListByEntity(SysAttachmentEntity sysAttachment) {
    return sysAttachmentDao.queryListByEntity(sysAttachment);
  }

  @Override
  public List<SysAttachmentEntity> queryByIds(Integer[] ids) {
    return sysAttachmentDao.queryByIds(ids);
  }
}
